package com.bgs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 消息内容存储表
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Message对象", description="消息内容存储表")
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "消息表主键")
      @TableId(value = "message_id", type = IdType.AUTO)
    private Integer messageId;

    private String messageText;

    private Date messageSendTime;

    @ApiModelProperty(value = "(发送者ID)指向用户表外键(视角)")
    private Integer fromBeforeUserId;

    @ApiModelProperty(value = "(接收者ID)指向用户表(视角)")
    private Integer toBeforeUserId;

    @ApiModelProperty(value = "发送者id,真实的发送者id")
    private Integer senderId;

    @ApiModelProperty(value = "接受者id,真实的接受者id")
    private Integer receiverId;

    @ApiModelProperty(value = "消息状态 1：未读 2：已读 3：删除")
    private Integer messageStatus;


}
